package org.xhnews.preferences;

public class Preferences {
	//注册状态
	public static boolean registered=false;
	//注册序列号
	public static String registration_sn="";
	//程序运行次数
	public static int running_count=0;
	
	//新闻更新的开始时间	
	public static String news_update_begin_time="00:00";
	//新闻更新的结束时间
	public static String news_update_end_time="23:59";
	//新闻更新的时间间隔
	public static int news_update_interval=60;
	//本地存储新闻条数的最大值
	public static int news_max_count_per_channel=100;
	//新闻下载类型
	public static int news_download_type=2;
	//新闻的最后更新时间
	public static String news_last_update_time="";
	//是否已读下沉
	public static boolean news_is_readdown=true;
	//联系人更新的时间间隔
	public static int contact_update_interval=60;
	//消息更新的时间间隔
	public static int message_update_interval=60;
	//本地城市ID
	public static int location_city_id=2;
	//本地城市代码
	public static int location_city_code=792;
	//本地城市名称
	public static String location_city_name="北京";
	//所在省份ID
	public static int location_province_id=0;
	
	//天气更新的时间间隔
	public static int weather_update_interval=60;	
	//服务器地址
	public static String server_address="http://172.16.139.1/";
	//加载系统参数
	public static void load(){
		PreferencesModel.open();
		PreferencesModel.load();
		PreferencesModel.close();
	}
	//保存系统参数
	public static void save(){
		PreferencesModel.open();
		PreferencesModel.save();
		PreferencesModel.close();
	}
}
